﻿<local:AudioTimeControlBase x:Class="LaunchPad.Core.Controls.Tracks.WaveViewerControl"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="clr-namespace:LaunchPad.Core.Controls.Tracks" 
    xmlns:canvas="clr-namespace:LaunchPad.Core.Controls.Tracks.CanvasVirtualization" 
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
    mc:Ignorable="d" 
    d:DesignWidth="395" Background="Transparent" Focusable="False">

    <Grid Name="waveFormGrid">
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto"/>
            <ColumnDefinition Width="*"/>
        </Grid.ColumnDefinitions>

        <ScrollViewer x:Name="scroller" HorizontalScrollBarVisibility="Hidden" 
                  VerticalScrollBarVisibility="Disabled" CanContentScroll="True" Grid.Column="1" Focusable="False">
            <canvas:VirtualCanvas x:Name="track" Background="White" MouseLeftButtonDown="ScrollerMouseLeftButtonDown"/>
        </ScrollViewer>
        
        <local:TrackHeader x:Name="Header" HorizontalContentAlignment="Center">
            <TextBlock TextAlignment="Center" Text="Audio">
                <TextBlock.LayoutTransform>
                <RotateTransform Angle="-90"></RotateTransform>
                    </TextBlock.LayoutTransform>
            </TextBlock>
        </local:TrackHeader>

    </Grid>
</local:AudioTimeControlBase>
